package com.settlement.system.service.impl;

import com.settlement.system.mapper.TblDyCashFlowRecordsMapper;
import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblDyCashFlowRecords;
import com.settlement.system.model.entity.common.TblJdBillDetail;
import com.settlement.system.service.ITblDyCashFlowRecordsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.settlement.system.mapper.BaseMapper;
import jakarta.annotation.Resource;
import java.util.Map;

/**
 * 抖音资金流水明细 服务实现类
 * @author xiaochuan
 * @since 2023-08-25
 */
@Slf4j
@Service
public class TblDyCashFlowRecordsServiceImpl extends BaseServiceImpl implements ITblDyCashFlowRecordsService {

    @Resource
    private TblDyCashFlowRecordsMapper tblDyCashFlowRecordsMapper;

    @Override
    public BaseMapper init() {
        return tblDyCashFlowRecordsMapper;
    }

    @Override
    public TblDyCashFlowRecords getFoot(Map<String, Object> params) throws ServiceException {
        try {
            return tblDyCashFlowRecordsMapper.getFoot(params);
        } catch (Exception ex) {
            log.error("获取合计异常", ex);
            throw new ServiceException("获取合计异常", ex);
        }
    }
}

